<div class="hDiv">
    <div class="hDivBox">
        <table cellspacing="0" cellpadding="0" style="width: 100%">
            <thead>
            <tr>
                <th class=""> <div class="text-l10">商品</div> </th>
                <th class="w280"> <div class="tc">积分价</div> </th>
                <th class="w100"> <div class="tc">库存</div> </th>
                <th class="w100"> <div class="tc">销售数量</div> </th>
                <th class="w200"> <div class="tc">销售额</div> </th>
                <th class="w150"> <div class="tc">创建时间</div> </th>
                <th class="w100"> <div class="tc">状态</div> </th>
                <th class="w150"> <div class="tc">操作</div> </th>
            </tr>
            </thead>
        </table>
    </div>
</div>
<div class="bDiv" style="height: auto;">
    <div id="flexigrid" cellpadding="0" cellspacing="0" border="0">
        <table style="width: 100%">
            <tbody>
            {empty name="$list"}
                <tr>
                    <td class="no-data" align="center" axis="col0" colspan="50">
                        <div class="no_row">
                            <div class="no_pic"><img src="__SKIN__/images/null-data.png"></div>
                        </div>
                    </td>
                </tr>
            {else/}
                {volist name="$list" id="vo"}
                <tr>
                    <td class="" style="width: 100%;">
                        <div class="flex-row">
                            <img width="60" height="60" src="{$vo.litpic}">
                            <div class="ml5">
                                {eq name="$vo.prom_type" value="0"}<span class="pro-shi">实</span>{else/}<span class="pro-xu">虚</span>{/eq}
                                <!-- {eq name="$vo.goods_spec" value="1"}<span class="pro-shi">多</span>{/eq} -->
                                {$vo.title}
                            </div>
                        </div>
                    </td>
                    <td> <div class="w280 tc">{$vo.goodsComplexShow}</div> </td>
                    <td> <div class="w100 tc">{$vo.goods_stock}</div> </td>
                    <td> <div class="w100 tc">{$vo.goodsSalesNumber}</div> </td>
                    <td class="operation">
                        <div class="w200 tc">积分：<span class="red">{$vo.goodsSalesPoints}</span><br>金额：<span class="red">{$vo.goodsSalesPrice}元</span></div>
                    </td>
                    <td> <div class="w150 tc">{$vo.add_time|MyDate='Y-m-d H:i:s',###}</div> </td>
                    <td>
                        <div class="w100 tc">{eq name="$vo.goods_status" value="1"}<span class="green">已上架</span>{else/}<span class="red">已下架</span>{/eq}</div>
                    </td>
                    <td>
                        <div class="w150 tc">
                            {eq name="$vo.goods_status" value="1"}
                            <a href="javascript:void(0);" onclick="goodsStatus({$vo.goods_id}, 2);" class="btn">下架</a>
                            {else/}
                            <a href="javascript:void(0);" onclick="goodsStatus({$vo.goods_id}, 1);" class="btn">上架</a>
                            {/eq}
                            <a href="{:weapp_url('PointsShop/PointsShop/edit', ['goods_id'=>$vo.goods_id])}" class="btn">编辑</a>
                            <i></i>
                            <a href="javascript:void(0);" onclick="goodsDelete({$vo.goods_id});" class="btn">删除</a>
                        </div>
                    </td>
                </tr>
                {/volist}
            {/empty}
            </tbody>
        </table>
    </div>
    <div class="iDiv" style="display: none;"></div>
</div>

<div class="tDiv">
    <div class="tDiv2">{include file="page.htm" /}</div>
</div>